package com.fc.push.mqtt;

public class MqttConfig {
	
	private static String host;
	private static int port;
	private static String username;
	private static String password;
	
	private static boolean cleanSession;
	private static int connectTimeOut;
	private static int keepAliveInterval;
	
	//pool properties
	private static int maxTotal;
	private static int maxIdle;
	private static int minIdle;
	private static boolean testOnBorrow;
	private static boolean testWhileIdle;
	private static boolean testOnCreate;
	private static boolean testOnReturn;
	private static long maxWaitMillis;
	public static String getHost() {
		return host;
	}
	public static void setHost(String host) {
		MqttConfig.host = host;
	}
	public static int getPort() {
		return port;
	}
	public static void setPort(int port) {
		MqttConfig.port = port;
	}
	public static String getUsername() {
		return username;
	}
	public static void setUsername(String username) {
		MqttConfig.username = username;
	}
	public static String getPassword() {
		return password;
	}
	public static void setPassword(String password) {
		MqttConfig.password = password;
	}
	public static boolean isCleanSession() {
		return cleanSession;
	}
	public static void setCleanSession(boolean cleanSession) {
		MqttConfig.cleanSession = cleanSession;
	}
	public static int getConnectTimeOut() {
		return connectTimeOut;
	}
	public static void setConnectTimeOut(int connectTimeOut) {
		MqttConfig.connectTimeOut = connectTimeOut;
	}
	public static int getKeepAliveInterval() {
		return keepAliveInterval;
	}
	public static void setKeepAliveInterval(int keepAliveInterval) {
		MqttConfig.keepAliveInterval = keepAliveInterval;
	}
	public static int getMaxTotal() {
		return maxTotal;
	}
	public static void setMaxTotal(int maxTotal) {
		MqttConfig.maxTotal = maxTotal;
	}
	public static int getMaxIdle() {
		return maxIdle;
	}
	public static void setMaxIdle(int maxIdle) {
		MqttConfig.maxIdle = maxIdle;
	}
	public static int getMinIdle() {
		return minIdle;
	}
	public static void setMinIdle(int minIdle) {
		MqttConfig.minIdle = minIdle;
	}
	public static boolean isTestOnBorrow() {
		return testOnBorrow;
	}
	public static void setTestOnBorrow(boolean testOnBorrow) {
		MqttConfig.testOnBorrow = testOnBorrow;
	}
	public static boolean isTestWhileIdle() {
		return testWhileIdle;
	}
	public static void setTestWhileIdle(boolean testWhileIdle) {
		MqttConfig.testWhileIdle = testWhileIdle;
	}
	public static boolean isTestOnCreate() {
		return testOnCreate;
	}
	public static void setTestOnCreate(boolean testOnCreate) {
		MqttConfig.testOnCreate = testOnCreate;
	}
	public static boolean isTestOnReturn() {
		return testOnReturn;
	}
	public static void setTestOnReturn(boolean testOnReturn) {
		MqttConfig.testOnReturn = testOnReturn;
	}
	public static long getMaxWaitMillis() {
		return maxWaitMillis;
	}
	public static void setMaxWaitMillis(long maxWaitMillis) {
		MqttConfig.maxWaitMillis = maxWaitMillis;
	}
}
